<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateReceivePaymentBodiesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create("receive_payment_bodies", function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('DocCode')->nullable();
            $table->unsignedBigInteger('DocItem')->nullable();
            $table->string('Resume')->nullable();
            $table->string('Rowid')->nullable();
            $table->string('acctcode')->nullable();
            $table->string('acctname')->nullable();
            $table->string('AcctFullName')->nullable();
            $table->string('dtcurrency')->nullable();
            $table->string('dtexchange_rate')->nullable();
            $table->decimal('debit', 10, 2)->nullable();
            $table->decimal('credit', 10, 2)->nullable();
            $table->decimal('natdebit', 10, 2)->nullable();
            $table->decimal('natcredit', 10, 2)->nullable();
            $table->string('refrowid')->nullable();
            $table->string('cv')->nullable();
            $table->string('cv1')->nullable();
            $table->string('cv1name')->nullable();
            $table->string('cv2')->nullable();
            $table->string('cv2name')->nullable();
            $table->string('cv3')->nullable();
            $table->string('cv3name')->nullable();
            $table->string('cv4')->nullable();
            $table->string('cv4name')->nullable();
            $table->string('cv5')->nullable();
            $table->string('cv5name')->nullable();
            $table->string('ismodifyflag')->nullable();
            $table->string('accessary')->nullable();
            $table->dateTime('Originaldatetime')->nullable();
            $table->string('fluxid')->nullable();
            $table->string('fluxname')->nullable();
            $table->string('opendigit')->nullable();
            $table->string('dtLinkcode')->nullable();
            $table->string('dtlinkformid')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('receive_payment_bodies');
    }
}
